﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using com.mservice.momo.msg;
using System.IO;
using ProtoBuf;

namespace MoMoTransferVN_WP
{
    public class MoMoReq
    {

        public static MomoMessage processHello()
        {
            Hello hello = new Hello
                {
                    imei = "",
                    imei_key = "",
                    session_key = ""
                };

            var stream = new MemoryStream();
            Serializer.Serialize(stream, hello);
            byte[] body = stream.ToArray();

            long cmdIndex = DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond;

            MomoMessage msg = new MomoMessage(MsgType.HELLO.GetHashCode(), cmdIndex, 1263081153, body);
            return msg;
        }
    }
}
